/**
 * The Router - control url's and actions assigned to them
 */
 
Ext.Router.draw(function(map) {
	
	map.connect('Menu', {controller: 'Menu', action: 'showMenu'});
	map.connect('Menu/:id1', {controller: 'Menu', action: 'showMenu'});
	map.connect('Menu/:id1/:id2', {controller: 'Menu', action: 'showMenu'});
	map.connect('Cart', {controller: 'Menu', action: 'showCart'});
	map.connect('Cart/List', {controller: 'Menu', action: 'showCart'});
	map.connect('Cart/Form', {controller: 'Cart', action: 'showForm'});
	map.connect('Promotions', {controller: 'Menu', action: 'showPromotions'});
	map.connect('Promotions/:id1', {controller: 'Menu', action: 'showPromotions'});
	map.connect('Promotions/:id1/:id2', {controller: 'Menu', action: 'showPromotions'});
	map.connect('About', {controller: 'Menu', action: 'showAbout'});
	
    //default fallback routes 
    map.connect(':controller/:action');
});